<%--
  Created by IntelliJ IDEA.
  User: 甲乙饼叮叮
  Date: 2019/10/6
  Time: 17:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<div class="form-group">
    <label class="control-label">科室</label>
    <div class="">
        <select class="form-control" id="frist" name="firstdep" onchange="changedep(this)">
            <option value="-1">===请选择主科室===</option>
            <c:forEach items="${firstdep}" var="fdep">
                <c:choose>
                    <c:when test="${fristId==fdep.id}">
                        <option value="${fdep.id}" selected>${fdep.deptName}</option>
                    </c:when>
                    <c:otherwise>
                        <option value="${fdep.id}">${fdep.deptName}</option>
                    </c:otherwise>
                </c:choose>
            </c:forEach>
        </select>
    </div>
</div>
<div class="form-group">
    <label  class="control-label">科室</label>
        <select class="form-control" id="second" name="seconddep" onchange="changesdep(this)">
            <option value="-1">===请选择二级科室===</option>
            <c:forEach items="${seconddep}" var="sdep">
                <c:choose>
                    <c:when test="${secondId==sdep.id}">
                        <option value="${sdep.id}" selected >${sdep.sdeptName}</option>
                    </c:when>
                    <c:otherwise>
                        <option value="${sdep.id}" >${sdep.sdeptName}</option>
                    </c:otherwise>
                </c:choose>
            </c:forEach>
        </select>
</div>
<div class="form-group">
    <label class="control-label">医生</label>
    <div >
        <select class="form-control" name="doctor" onchange="changedoc(this)">
            <option value="-1">===请选择医生===</option>
            <c:forEach items="${docList}" var="doc">
                <c:choose>
                    <c:when test="${doctorId==doc.id}">
                        <option value="${doc.id}" selected >${doc.docName}</option>
                    </c:when>
                    <c:otherwise>
                        <option value="${doc.id}" >${doc.docName}</option>
                    </c:otherwise>
                </c:choose>
            </c:forEach>
        </select>
    </div>
</div>
<div class="form-group">
    <label  class="control-label">就医时间段</label>
    <div class="">
        <select class="form-control" name="time">
            <option value="-1">===请选择就诊时间===</option>
            <c:forEach items="${timeList}" var="t">
                <c:choose>
                    <c:when test="${TimeId==t.id}">
                        <option value="${t.id}" selected >${t.startTimes}--${t.endTime}</option>
                    </c:when>
                    <c:otherwise>
                        <option  value="${t.id}">${t.startTimes}--${t.endTime}</option>
                    </c:otherwise>
                </c:choose>
            </c:forEach>
        </select>
    </div>
</div>
